﻿
@{
    ViewBag.Title = "Restaurar Respaldo";

}
<link href="../../Content/themes/bootstrap.extra.table.css" rel="stylesheet" />
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>


<script>
$(document).on("click", "#btnid", function (event) {
        event.preventDefault();
        var fileOptions = {
            success: res,
            dataType: "json"
        }
        $("#formid").ajaxSubmit(fileOptions);
    });
    </script>

@using (Html.BeginForm("RestoredBackup2", "Backup", FormMethod.Post, new { enctype = "multipart/form-data" }))
 { 
   <input type="file" name="file" />
   <input type="submit" value="Upload" class="save" id="btnid" />
 }

